home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / dynaweb.idb / usr / lib / Insight / data / config / bbarutil.dwc.z / bbarutil.dwc
Encoding:
Text File  |  1997-07-30  |  12.3 KB  |  264 lines

  1. ##=====================================================================
  2. ##
  3. ## Useful stuff for building button bars.
  4. ##
  5. ##=====================================================================
  6.  
  7. ## Control the width (in characters) of the search input field,
  8. ## and the label on the associated button.
  9.  
  10. dwSetParam Search_sliver_size     45
  11. dwSetParam Search_button_label   Search
  12.  
  13. ## Set up a mapping between readable names for the icons vs. the
  14. ## associated file names.
  15.  
  16. dwSetParam button_path_map {
  17.    inso_home_page    \"[dwGetParam IconDir]b_insohmpg.gif\"
  18.    home              \"[dwGetParam IconDir]b_home.gif\"
  19.    collection        \"[dwGetParam IconDir]b_colect.gif\"
  20.    collection_dim    \"[dwGetParam IconDir]d_colect.gif\"
  21.    book              \"[dwGetParam IconDir]b_book.gif\"
  22.    book_dim          \"[dwGetParam IconDir]d_book.gif\"
  23.    expand            \"[dwGetParam IconDir]b_expand.gif\"
  24.    expand_dim        \"[dwGetParam IconDir]d_expand.gif\"
  25.    collapse          \"[dwGetParam IconDir]b_colpse.gif\"
  26.    collapse_dim      \"[dwGetParam IconDir]d_colpse.gif\"
  27.    search_forms      \"[dwGetParam IconDir]b_forms.gif\"
  28.    search_forms_dim  \"[dwGetParam IconDir]d_forms.gif\"
  29.    clear_search      \"[dwGetParam IconDir]b_clear.gif\"
  30.    clear_search_dim  \"[dwGetParam IconDir]d_clear.gif\"
  31.    prev_hit          \"[dwGetParam IconDir]b_prvhit.gif\"
  32.    prev_hit_dim      \"[dwGetParam IconDir]d_prvhit.gif\"
  33.    next_hit          \"[dwGetParam IconDir]b_nxthit.gif\"
  34.    next_hit_dim      \"[dwGetParam IconDir]d_nxthit.gif\"
  35.    hide_frames       \"[dwGetParam IconDir]b_nofram.gif\"
  36.    show_frames       \"[dwGetParam IconDir]b_frames.gif\"
  37.    help              \"[dwGetParam IconDir]b_help.gif\"
  38. }
  39.  
  40. ## Gather all the "alternate" button labels (for when users elect not
  41. ## to download images) into one place for convenience.
  42.  
  43. dwSetParam button_title_map   {
  44.    inso_home_page {[Inso Home Page]}
  45.    home           {[Home]}
  46.    collection     {[Collection]}
  47.    book           {[Book]}
  48.    hide_frames    {[Hide Frames]}
  49.    show_frames    {[Show Frames]}
  50.    expand         {[Expand]}
  51.    collapse       {[Collapse]}
  52.    search_forms   {[Forms]}
  53.    clear_search   {[Clear Search]}
  54.    prev_hit       {[Prev Hit]}
  55.    next_hit       {[Next Hit]}
  56.    help           {[Help]}
  57. }
  58.  
  59. ## For legibility of the templates create mappings of concise button names
  60. ## to the rather more verbose IMG tags.
  61.  
  62. dwSetParam button_alignment   MIDDLE
  63. dwSetParam button_border      0
  64. dwSetParam button_height      30
  65. dwSetParam button_width       30
  66. dwSetParam graphic_height     30
  67. dwSetParam graphic_width      30
  68.  
  69.  
  70. dwSetParam button_image_srcmap {
  71.    inso_home_page "<IMG\ SRC=[dwGetParam button_path_map inso_home_page]\
  72.                   ALT=[dwGetParam button_title_map inso_home_page]\
  73.                   ALIGN=[dwGetParam button_alignment]\
  74.                   BORDER=[dwGetParam button_border]\
  75.                   WIDTH=[dwGetParam button_width]\
  76.                   HEIGHT=[dwGetParam button_height]>"
  77.    home         "<IMG\ SRC=[dwGetParam button_path_map home]\
  78.                   ALT=[dwGetParam button_title_map home]\
  79.                   ALIGN=[dwGetParam button_alignment]\
  80.                   BORDER=[dwGetParam button_border]\
  81.                   WIDTH=[dwGetParam button_width]\
  82.                   HEIGHT=[dwGetParam button_height]>"
  83.    collection   "<IMG\ SRC=[dwGetParam button_path_map collection]\
  84.                   ALT=[dwGetParam button_title_map collection]\
  85.                   ALIGN=[dwGetParam button_alignment]\
  86.                   BORDER=[dwGetParam button_border]\
  87.                   WIDTH=[dwGetParam button_width]\
  88.                   HEIGHT=[dwGetParam button_height]>"
  89.    collection_dim "<IMG\ SRC=[dwGetParam button_path_map collection_dim]\
  90.                   ALT=[dwGetParam button_title_map collection]\
  91.                   ALIGN=[dwGetParam button_alignment]\
  92.                   BORDER=[dwGetParam button_border]\
  93.                   WIDTH=[dwGetParam button_width]\
  94.                   HEIGHT=[dwGetParam button_height]>"
  95.    book         "<IMG\ SRC=[dwGetParam button_path_map book]\
  96.                   ALT=[dwGetParam button_title_map book]\
  97.                   ALIGN=[dwGetParam button_alignment]\
  98.                   BORDER=[dwGetParam button_border]\
  99.                   WIDTH=[dwGetParam button_width]\
  100.                   HEIGHT=[dwGetParam button_height]>"
  101.    book_dim     "<IMG\ SRC=[dwGetParam button_path_map book_dim]\
  102.                   ALT=[dwGetParam button_title_map book]\
  103.                   ALIGN=[dwGetParam button_alignment]\
  104.                   BORDER=[dwGetParam button_border]\
  105.                   WIDTH=[dwGetParam button_width]\
  106.                   HEIGHT=[dwGetParam button_height]>"
  107.    expand       "<IMG\ SRC=[dwGetParam button_path_map expand]\
  108.                   ALT=[dwGetParam button_title_map expand]\
  109.                   ALIGN=[dwGetParam button_alignment]\
  110.                   BORDER=[dwGetParam button_border]\
  111.                   WIDTH=[dwGetParam button_width]\
  112.                   HEIGHT=[dwGetParam button_height]>"
  113.    expand_dim   "<IMG\ SRC=[dwGetParam button_path_map expand_dim]\
  114.                   ALT=[dwGetParam button_title_map expand]\
  115.                   ALIGN=[dwGetParam button_alignment]\
  116.                   BORDER=[dwGetParam button_border]\
  117.                   WIDTH=[dwGetParam button_width]\
  118.                   HEIGHT=[dwGetParam button_height]>"
  119.    collapse    "<IMG\ SRC=[dwGetParam button_path_map collapse]\
  120.                   ALT=[dwGetParam button_title_map collapse]\
  121.                   ALIGN=[dwGetParam button_alignment]\
  122.                   BORDER=[dwGetParam button_border]\
  123.                   WIDTH=[dwGetParam button_width]\
  124.                   HEIGHT=[dwGetParam button_height]>"
  125.    collapse_dim "<IMG\ SRC=[dwGetParam button_path_map collapse_dim]\
  126.                   ALT=[dwGetParam button_title_map collapse]\
  127.                   ALIGN=[dwGetParam button_alignment]\
  128.                   BORDER=[dwGetParam button_border]\
  129.                   WIDTH=[dwGetParam button_width]\
  130.                   HEIGHT=[dwGetParam button_height]>"
  131.    search_forms "<IMG\ SRC=[dwGetParam button_path_map search_forms]\
  132.                   ALT=[dwGetParam button_title_map search_forms]\
  133.                   ALIGN=[dwGetParam button_alignment]\
  134.                   BORDER=[dwGetParam button_border]\
  135.                   WIDTH=[dwGetParam button_width]\
  136.                   HEIGHT=[dwGetParam button_height]>"
  137.    search_forms_dim "<IMG\ SRC=[dwGetParam button_path_map search_forms_dim]\
  138.                   ALT=[dwGetParam button_title_map search_forms]\
  139.                   ALIGN=[dwGetParam button_alignment]\
  140.                   BORDER=[dwGetParam button_border]\
  141.                   WIDTH=[dwGetParam button_width]\
  142.                   HEIGHT=[dwGetParam button_height]>"
  143.    clear_search "<IMG\ SRC=[dwGetParam button_path_map clear_search]\
  144.                   ALT=[dwGetParam button_title_map clear_search]\
  145.                   ALIGN=[dwGetParam button_alignment]\
  146.                   BORDER=[dwGetParam button_border]\
  147.                   WIDTH=[dwGetParam button_width]\
  148.                   HEIGHT=[dwGetParam button_height]>"
  149.    clear_search_dim "<IMG\ SRC=[dwGetParam button_path_map clear_search_dim]\
  150.                   ALT=[dwGetParam button_title_map clear_search]\
  151.                   ALIGN=[dwGetParam button_alignment]\
  152.                   BORDER=[dwGetParam button_border]\
  153.                   WIDTH=[dwGetParam button_width]\
  154.                   HEIGHT=[dwGetParam button_height]>"
  155.    prev_hit    "<IMG\ SRC=[dwGetParam button_path_map prev_hit]\
  156.                   ALT=[dwGetParam button_title_map prev_hit]\
  157.                   ALIGN=[dwGetParam button_alignment]\
  158.                   BORDER=[dwGetParam button_border]\
  159.                   WIDTH=[dwGetParam button_width]\
  160.                   HEIGHT=[dwGetParam button_height]>"
  161.    prev_hit_dim   "<IMG\ SRC=[dwGetParam button_path_map prev_hit_dim]\
  162.                   ALT=[dwGetParam button_title_map prev_hit]\
  163.                   ALIGN=[dwGetParam button_alignment]\
  164.                   BORDER=[dwGetParam button_border]\
  165.                   WIDTH=[dwGetParam button_width]\
  166.                   HEIGHT=[dwGetParam button_height]>"
  167.    next_hit    "<IMG\ SRC=[dwGetParam button_path_map next_hit]\
  168.                   ALT=[dwGetParam button_title_map next_hit]\
  169.                   ALIGN=[dwGetParam button_alignment]\
  170.                   BORDER=[dwGetParam button_border]\
  171.                   WIDTH=[dwGetParam button_width]\
  172.                   HEIGHT=[dwGetParam button_height]>"
  173.    next_hit_dim   "<IMG\ SRC=[dwGetParam button_path_map next_hit_dim]\
  174.                   ALT=[dwGetParam button_title_map next_hit]\
  175.                   ALIGN=[dwGetParam button_alignment]\
  176.                   BORDER=[dwGetParam button_border]\
  177.                   WIDTH=[dwGetParam button_width]\
  178.                   HEIGHT=[dwGetParam button_height]>"
  179.    hide_frames  "<IMG\ SRC=[dwGetParam button_path_map hide_frames]\
  180.                   ALT=[dwGetParam button_title_map hide_frames]\
  181.                   ALIGN=[dwGetParam button_alignment]\
  182.                   BORDER=[dwGetParam button_border]\
  183.                   WIDTH=[dwGetParam button_width]\
  184.                   HEIGHT=[dwGetParam button_height]>"
  185.    show_frames  "<IMG\ SRC=[dwGetParam button_path_map show_frames]\
  186.                   ALT=[dwGetParam button_title_map show_frames]\
  187.                   ALIGN=[dwGetParam button_alignment]\
  188.                   BORDER=[dwGetParam button_border]>"
  189.    help         "<IMG\ SRC=[dwGetParam button_path_map help]\
  190.                   ALT=[dwGetParam button_title_map help]\
  191.                   ALIGN=[dwGetParam button_alignment]\
  192.                   BORDER=[dwGetParam button_border]\
  193.                   WIDTH=[dwGetParam button_width]\
  194.                   HEIGHT=[dwGetParam button_height]>"
  195. }
  196.  
  197. dwSetParam graphic_border 0
  198.  
  199. dwSetParam graphic_path {
  200.    collection     \"[dwGetParam IconDir]i_colect.gif\"
  201.    book        \"[dwGetParam IconDir]i_book.gif\"
  202.    expand         \"[dwGetParam IconDir]i_expand.gif\"
  203.    collapse    \"[dwGetParam IconDir]i_colpse.gif\"
  204.    spacer         \"[dwGetParam IconDir]spacer.gif\"
  205.    previous_page     \"[dwGetParam IconDir]b_prev.gif\"
  206.    previous_page_dim \"[dwGetParam IconDir]d_prev.gif\"
  207.    toc         \"[dwGetParam IconDir]b_toc.gif\"
  208.    next_page      \"[dwGetParam IconDir]b_next.gif\"
  209.    next_page_dim     \"[dwGetParam IconDir]d_next.gif\"
  210. }
  211.  
  212. dwSetParam graphic_title {
  213.    collection     {" "}
  214.    book        {" "}
  215.    expand         {"+"}
  216.    collapse    {"-"}
  217.    spacer         {" "}
  218.    previous_page     {" "}
  219.    previous_page_dim {" "}
  220.    next_page      {" "}
  221.    toc         {" "}
  222.    next_page_dim     {" "}
  223. }
  224.  
  225. dwSetParam graphic_image_srcmap {
  226.    collection "<IMG\ SRC=[dwGetParam graphic_path collection]\
  227.                 ALT=[dwGetParam graphic_title collection]\
  228.                 BORDER=[dwGetParam graphic_border]>"
  229.    book       "<IMG\ SRC=[dwGetParam graphic_path book]\
  230.                 ALT=[dwGetParam graphic_title book]\
  231.                 BORDER=[dwGetParam graphic_border]>"
  232.    expand     "<IMG\ SRC=[dwGetParam graphic_path expand]\
  233.                 VALIGN=TOP\
  234.                 ALT=[dwGetParam graphic_title expand]\
  235.                 BORDER=[dwGetParam graphic_border]>"
  236.    collapse   "<IMG\ SRC=[dwGetParam graphic_path collapse]\
  237.                 VALIGN=TOP\
  238.                 ALT=[dwGetParam graphic_title collapse]\
  239.                 BORDER=[dwGetParam graphic_border]>"
  240.    prev_page  "<IMG\ SRC=[dwGetParam graphic_path previous_page]\
  241.                 ALT=[dwGetParam graphic_title previous_page]\
  242.                 BORDER=[dwGetParam graphic_border]>"
  243.    prev_page_dim "<IMG\ SRC=[dwGetParam graphic_path previous_page_dim]\
  244.                 ALT=[dwGetParam graphic_title previous_page_dim]\
  245.                 BORDER=[dwGetParam graphic_border]>"
  246.    toc        "<IMG\ SRC=[dwGetParam graphic_path toc]\
  247.                 ALT=[dwGetParam graphic_title toc]\
  248.                 BORDER=[dwGetParam graphic_border]>"
  249.    next_page  "<IMG\ SRC=[dwGetParam graphic_path next_page]\
  250.                 ALT=[dwGetParam graphic_title next_page]\
  251.                 BORDER=[dwGetParam graphic_border]>"
  252.    next_page_dim "<IMG\ SRC=[dwGetParam graphic_path next_page_dim]\
  253.                 ALT=[dwGetParam graphic_title next_page_dim]\
  254.                 BORDER=[dwGetParam graphic_border]>"
  255.    spacer     "<IMG\ SRC=[dwGetParam graphic_path spacer]>"
  256. }
  257.  
  258. dwSetParam a_href_map {
  259.    inso_home_page  "<A\ HREF=\"http://www.inso.com\" \
  260.            TARGET=dynaweb_popup>[dwGetParam button_image_srcmap inso_home_page]</A>"
  261.    help  "<A\ HREF=\"[dwGetParam IconDir]iconhelp.htm\" \
  262.            TARGET=_top>[dwGetParam button_image_srcmap help]</A>"
  263. }
  264.